<?php echo $this->doctype() ?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  	<meta name="google-site-verification" content="YEzigxhhTQdzVyr6x77Wm1v08Gu_NkpW125RPlmoicQ" />
  	<link REL="SHORTCUT ICON" HREF="<?=HTTP_HOST?>/favicon.ico">
    <?php echo $this->headTitle() ?>
    <?php echo $this->headMeta() ?>
    
  	<?php 
  		$this->headLink()->appendStylesheet(HTTP_HOST.'/css/style.css');
  		echo $this->headLink();
  	?>
  	<?php 
  		$this->headScript()
  			->prependFile(HTTP_HOST.'/js/index.js')
  			->prependFile(HTTP_HOST.'/js/jQuery/jquery-1.6.2.min.js')
  			->appendFile(HTTP_HOST.'/js/search-box.js')
  			;
  		$this->headScript()->captureStart();
  		?>
  			var HTTP_HOST = '<?=HTTP_HOST?>';
  		<?php 
  		$this->headScript()->captureEnd();
  		echo $this->headScript();
  	?>
	<script type="text/javascript">
	
	  var _gaq = _gaq || [];
	  _gaq.push(['_setAccount', 'UA-26556323-1']);
	  _gaq.push(['_trackPageview']);
	
	  (function() {
	    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
	    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
	    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
	  })();
	
	</script>
</head>
<body>
	<?php
		$isObject = !is_null($this->singleObject); 
	?>
	<?=$this->render('blocks/country-header.phtml')?>
	<div id="blue_band">
		<?=$this->render('blocks/search-box.phtml')?>
	</div>
	<div id="blue_separator"></div>
	<div id="_content">
		<div id="main_content">
			<div id="left_menu">
				<div class="big_button">
					<a href="<?=HTTP_HOST?>/references/add" class="add_reference"><?=$this->translate('ДОБАВИТЬ ОТЗЫВ')?></a>
				</div>
			
				<!-- <div id="register_div"><a href="<?=HTTP_HOST?>" onclick="return false;"><?=$this->translate('Регистрация')?></a></div> -->
				<div id="order_call"><a href="<?=HTTP_HOST?>/order-call" onclick="orederCall(); return false;"><?=$this->translate('Заказать звонок менеджера')?></a></div>
				<!-- Countries -->
				<?=$this->render('blocks/country-list.phtml');?>
				<!-- Countries -->
				<div id="menu_separator"></div>
				<div style="float: left;height: auto;margin: 6px 0 0;padding: 1px 0px 0px 10px;position: relative;width: 190px;">
<?php
$cityweathercode = '4368%D0%9C%D0%BE%D1%81%D0%BA%D0%B2%D0%B0';
switch ($this->country->ID) {
	case 5: $cityweathercode = '3429%D0%A1%D0%BE%D1%84%D0%B8%D1%8F'; break; 
	case 4: $cityweathercode = '1950%D0%9C%D0%B0%D0%B4%D1%80%D0%B8%D0%B4'; break; 
	case 2: $cityweathercode = '3561%D0%A0%D0%B8%D0%BC'; break; 
	case 7: $cityweathercode = '3885%D0%9D%D0%B8%D0%BA%D0%BE%D1%81%D0%B8%D1%8F'; break; 
	case 9: $cityweathercode = '4368%D0%9C%D0%BE%D1%81%D0%BA%D0%B2%D0%B0'; break; 
	case 1: $cityweathercode = '3719%D0%A1%D1%82%D0%B0%D0%BC%D0%B1%D1%83%D0%BB'; break; 
	case 8: $cityweathercode = '479%D0%A5%D0%B5%D0%BB%D1%8C%D1%81%D0%B8%D0%BD%D0%BA%D0%B8'; break; 
	case 6: $cityweathercode = '1623%D0%9F%D0%B0%D1%80%D0%B8%D0%B6'; break; 
	case 3: $cityweathercode = '3245%D0%9F%D0%BE%D0%B4%D0%B3%D0%BE%D1%80%D0%B8%D1%86%D0%B0'; break; 
}
?>
<style type='text/css'>
.gmtbl {background-color: #ffffff; border: 1px solid #18b8f9;}
.gmtdttl {font-size: 110%; font-weight: bold;color: #ffffff; text-align:center; background-color: #18b8f9;}
.gmtdtext {font-size: 100%; font-weight: normal; color: #000000;text-align:center;}
.tddiv { text-align: left !important;}
div#cntdiv{ position:absolute; display:block;}
div#infselectlist{ background-color: #ffffff; border: 1px solid #7c7c7c; width:100%; height:100%; position:relative; top:1; left:0; right:0; visibility:hidden; cursor:pointer;}
div#hiddentl{ position:relative; top:1; left:0; right:0; visibility:hidden;}
</style>

<script language='JavaScript' type='text/javascript' src='http://informer.gismeteo.ru/html/js/showtlist_new.js'></script>
<script language='JavaScript' type='text/javascript' src='http://informer.gismeteo.ru/html/js/ldata_new.js'></script>
<table border=0 width=180><tr><td>
 <div id='informer1'></div>
<div id='infscript' style='visibility:hidden'></div>
<script language='JavaScript' type='text/javascript' src='http://informer.gismeteo.ru/html/2.php?tnumber=1&city0=<?=$cityweathercode?>&codepg=utf-8&par=4&inflang=rus&domain=ru&vieinf=1&p=1&w=1&tblstl=gmtbl&tdttlstl=gmtdttl&tdtext=gmtdtext&new_scheme=1'></script>
</td></tr></table>				
				
				</div>
				<div class="clear"></div>
				<div id="menu_separator"></div>
				<div style="text-align: center; padding: 20px 0px; clear: both;">
					<img src="http://pics.rbc.ru/img/grinf/usd/eur_cb_forex_000066_88x90.gif?<?=rand(0, 100000)?>" alt="" />
				</div>
				<div id="social_icons" style="display: none;">
					<a href="#" class="rss_btn"></a>
					<a href="#" class="facebook" style="margin: 0px 15px 0px 15px !important"></a>
					<a href="#" class="twitter"></a>
				</div>
			</div>
			<div id="<?=!$isObject ? 'c_center_div' : 'item_center_div'?>">
				<?php echo $this->layout()->content ?>
			</div>
			<div style="position: relative; float: right; width: 220px; height: auto">
				<div id="right_widget_block">
					<?php if ($isObject) { ?>
					<div class="_obj_right_btns"><a href="<?=HTTP_HOST?>/request-view" onclick="requestView(<?=$this->object['ID']; ?>); return false;"><?=$this->translate('Заявка на просмотр')?></a></div>
					
					<div class="_obj_right_btns"><a href="<?=$this->url(array('module' => 'default', 'controller' => 'print', 'action' => 'index', 'id' => $this->object['ID']), null, true)?>" target="_blank">
					
					<?=$this->translate('Распечатать Страницу')?></a>
					</div>
					
					<?php } ?>
					<?php if (!$isObject && !is_null($this->children) && sizeof($this->children) > 0) { ?>
					<div class="regions_of_country blue_title">
						<?=$this->childrenName?>:
					</div>
					<div id="right_menu_block">
						<ul>
							<?php foreach ($this->children as $v) { ?>
								<li><a href="<?=$this->childrenLink.$v['alias']?>"><?=$v['Name']?></a></li>
							<?php } ?>
						</ul>
					</div>
					<div class="menu_separator" style="margin: 10px 0px 16px 0px;"></div>	
					<?php } ?>
					<?php if (!$isObject && !is_null($this->pages) && count($this->pages) > 1) { ?>
						<div class="clear"></div>
						<div class="pageslist">
							<div class="top"></div>
							<div class="mid2">
								<div class="mid">
								<?php
									$pages = array();
									foreach ($this->pages as $v) {	
										if (!isset($v['target'])) $target = '';
										else $target = 'target = "'.$v['target'].'"';
										if (!isset($v['alias'])) {
											$pages[] = '<a '.$target.' href="'.$v['href'].'">'.$v['title'].'</a>';
										}	
										else {
											$pages[] = '<a '.$target.' href="'.HTTP_HOST.'/'.$this->country->alias.'/info/'.$v['alias'].'">'.$v['Title'].'</a>';
										}	
									}	 
								?>
								<?=implode('<div class="delim"></div>', $pages)?>
								</div>
							</div>
							<div class="bot"></div>
						</div>
						<div class="clear"></div>
						<div class="menu_separator" style="margin: 10px 0px 16px 0px;"></div>
					<?php } ?>
					<?php if ($this->country->ID == 1) { ?>
						<div class="clear"></div>
						<div style="text-align: center;">
							<a href="<?=HTTP_HOST?>/turciya/sredizemnomorskij_region/alanya/mahmutlar/_pamfilia_residence_pamfiliya_rezidens_0/id84" target="_blank">
								<img src="<?=HTTP_HOST?>/images/banners/Banneri_Pamphilia.gif" alt="Pamfilia" />
							</a>						
						</div>
						<div class="menu_separator" style="margin: 10px 0px 16px 0px;"></div>
						<div class="clear"></div>
						<div style="text-align: center;">
							<a href="<?=HTTP_HOST?>/turciya/sredizemnomorskij_region/alanya/kargydzhak/gold_city_gold_siti_novyj_proekt/id96" target="_blank">
								<img src="<?=HTTP_HOST?>/images/banners/Banneri_Gold_City.gif" alt="Gold Citi" />
							</a>						
						</div>
						<div class="menu_separator" style="margin: 10px 0px 16px 0px;"></div>
						<div class="clear"></div>
					<?php } ?>
					
			<?php if(sizeOf($this->sameObjects)>0):?>
				<div class="Specila_object_title" style="text-align: center; padding: 0px; margin: 10px 0px 10px 0px"><?=$this->translate('Похожие предложения');?></div>
				
			<?php foreach($this->sameObjects as $obj):?>
					
					<div class="same_div">
						<?php if (isset($obj['ParentID']) && intval($obj['ParentID']) > 0): ?>
							<a href="<?=Obj_Object::getObjectLink($obj)?>"><img src="<?=Obj_Image::thumbnail(array('ParentID' => $obj['ParentID'], 'SourceName' => $obj['SourceName']), 98, 98)?>" alt="" class="same_img"/></a>
							<img src="<?=HTTP_HOST?>/images/aurora/country_template/empty.gif" />
						<?php else: ?>
							<div class="same_img"></div>
						<?php endif;?>
						<div class="same_obj_name"><a href="<?=Obj_Object::getObjectLink($obj)?>"><?=$obj['Name']?></a></div>
					</div>
					
				<?php endforeach;?>
			<?php endif;?>
					
				</div>
			</div>
			
		</div>
	</div>
	<div class="clear"></div>
	<div id="bottom_menu_bg">
	<?=$this->render('blocks/footer.phtml');?>
	</div>
	<!-- Yandex.Metrika counter -->
	<script src="//mc.yandex.ru/metrika/watch.js" type="text/javascript"></script>
	<div style="display:none;"><script type="text/javascript">
	try { var yaCounter949978 = new Ya.Metrika({id:949978});}
	catch(e) { }
	</script></div>
	<noscript><div><img src="//mc.yandex.ru/watch/949978" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
	<!-- /Yandex.Metrika counter -->
</body>
</html>